#include "subject.h"

    Subject::Subject(){
        id="";
        sname="";
        stype="";
        credit=0;
        presub="";
    }
	Subject::Subject(string i_id, string i_sname, string i_stype, short i_credit, string i_presub){
        id=i_id;
        sname=i_sname;
        stype=i_stype;
        credit=i_credit;
        presub=i_presub;
	}

    void Subject::Show(){
        cout<<id<<":"<<sname<<":"<<stype<<":"<<credit<<":"<<presub<<"\n";
    }
	void Subject::setId(string n_id){
        id = n_id;
	}
	void Subject::setName(string n_sname){
        sname = n_sname;
	}
	void Subject::setType(string n_stype){
        stype = n_stype;
	}
	void Subject::setCredit(short n_credit){
        credit = n_credit;
	}
	void Subject::setPresub(string n_presub){
        presub = n_presub;
	}
    string Subject::getId(){
        return id;
    }
	string Subject::getName(){
        return sname;
    }
	string Subject::getType(){
        return stype;
    }
	short Subject::getCredit(){
        return credit;
    }
	string Subject::getPresub(){
        return presub;
    }

